<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Dom Test</title>
</head>
<body>
	<div id="root">
		<h1>Hello</h1>
		<p>今天是霜降</p>
	</div>
</body>
<script>
	var root = document.getElementById('root')
	function tick(){
		root.innerHTML = `<h1>Hello</h1><p>${new Date().toLocaleTimeString()}</p>`
	}
	tick()

	setInterval(tick,1000)
</script>
</html>